package com.edu.bhu.admin.domain;

import java.util.Date;

import com.edu.bhu.common.core.domain.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 报修记录对象 bik_repair
 * 
 * @author heyinan
 * @date 2022-03-15
 */
public class BikRepair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报修记录唯一标识 */
    private Long repId;

    /** 关联单车ID */
    @Excel(name = "关联单车ID")
    private Long bikId;
    /** 关联单车 */
    private BikBicycle bikBicycle;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;
    /** 关联用户 */
    private SysUser sysUser;

    /** 内容描述 */
    @Excel(name = "内容描述")
    private String content;

    /** 报修状态 1未解决 2已解决 */
    @Excel(name = "报修状态 1未解决 2已解决")
    private Long status;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date subTime;

    public void setRepId(Long repId) 
    {
        this.repId = repId;
    }

    public Long getRepId() 
    {
        return repId;
    }
    public void setBikId(Long bikId) 
    {
        this.bikId = bikId;
    }

    public Long getBikId() 
    {
        return bikId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setSubTime(Date subTime) 
    {
        this.subTime = subTime;
    }

    public Date getSubTime() 
    {
        return subTime;
    }

    public BikBicycle getBikBicycle() {
        return bikBicycle;
    }

    public void setBikBicycle(BikBicycle bikBicycle) {
        this.bikBicycle = bikBicycle;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repId", getRepId())
            .append("bikId", getBikId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("status", getStatus())
            .append("subTime", getSubTime())
            .toString();
    }
}
